AIOSEO\Plugin\Common\Tools\RobotsTxt B

Total Complexity 89
Dependencies 2
Dependents 2
Total lines 588
Lines of code 322
Logical lines of code 187
Comment lines 184
Methods 19
Properties 1

Methods 19

Method Rating Maintainability Complexity Lines of code
extractRules()
A
45 12 44
prepareRobotsTxt()
A
50 11 29
mergeRulesHelper()
A
51 9 23
stringifyRuleset()
S
53 7 23
importPhysicalRobotsTxt()
S
53 6 22
buildRules()
S
55 5 20
groupRulesByUserAgent()
S
59 5 14
sanitizeDirectiveValue()
S
60 5 13
mergeRules()
S
56 4 18
checkForPhysicalFiles()
S
51 3 26
importRobotsTxtFromUrl()
S
55 3 19
__construct()
S
67 4 7
importRobotsTxtFromText()
S
59 3 14
hasPhysicalRobotsTxt()
S
62 3 12
extractSitemapUrls()
S
61 3 11
getDefaultRobotsTxtContent()
S
62 2 11
rewriteRulesExist()
S
68 2 7
getSitemapRules()
S
72 1 5
parseRule()
S
73 1 4